package com.szrt.day20170419.interfaces.ch01;


import org.junit.Test;

public class DaibugongjuTest {
	
	
	/**
	 * 不需要走路就能够让我从深圳到北京
	 * @throws Exception
	 */
	@Test
	public void daibuTest02() throws Exception {
		
		Daibugongju daibugongju = new Saozhou();
		
		daibugongju.daibu();
		
	}
	@Test
	public void daibuTest01() throws Exception {
		
		Daibugongju daibugongju = new Carriage();
		
		daibugongju.daibu();
		
		
		//多态的缺点：不能调用子类特有的方法
		daibugongju.lingdang();
		
	}

}
